﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Services;

namespace WebRSSBuilder.Core
{
    public class RSSWCFDataSource
    {
        private RSSFeed feed;
        public RSSWCFDataSource() { 
            feed = new RSSFeedXLinqController().LoadRss(@"C:\Users\Sofian\documents\visual studio 2010\Projects\BusinessApplication1\BusinessApplication1.Web\App_Data\news.xml"); }
       /* public RSSWCFDataSource(string FileName)
        {
            feed = new RSSFeedXLinqController().LoadRss(FileName); 
        }*/
        //public IQueryable<RSSItem> Items { get { return feed.Items.AsQueryable<RSSItem>(); }  }
        public RSSFeed Feed { get { return this.feed; } set { this.feed = value; } }
    }
}